<HTML><HEAD><TITLE>peer_register_multitask(+Peer, -MsgQ)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">External Interface</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>peer_register_multitask(+Peer, -MsgQ)</H1>
Registers the peer Peer for peer multitasking.
<DL>
<DT><EM>Peer</EM></DT>
<DD>Existing peer name (atom)
</DD>
<DT><EM>MsgQ</EM></DT>
<DD>From ECLiPSe Multitasking message queue (variable)
</DD>
</DL>
<H2>Description</H2>
<P>
   This predicate is intended for use only in implementing peer 
   multitasking for an external language interface.
</P><P>
   Registers the existing peer Peer as a multitask peer. A peer 
   queue MsgQ for Peer is created to control the multitasking.
   Only peers which are registered as a multitasking peer participate in 
   the multitasking phase.
<H3>Modes and Determinism</H3><UL>
<LI>peer_register_multitask(+, -) is semidet
</UL>
<H3>Fail Conditions</H3>
Peer is already registered for multitasking.
<H3>Exceptions</H3>
<DL>
<DT><EM>(6) out of range </EM>
<DD>Peer is not an existing peer name
</DL>
<H2>See Also</H2>
<A HREF="../../kernel/externals/peer_do_multitask-1.html">peer_do_multitask / 1</A>, <A HREF="../../kernel/externals/peer_multitask_terminate-0.html">peer_multitask_terminate / 0</A>, <A HREF="../../kernel/externals/peer_multitask_confirm-0.html">peer_multitask_confirm / 0</A>, <A HREF="../../kernel/externals/peer_deregister_multitask-1.html">peer_deregister_multitask / 1</A>
</BODY></HTML>
